package com.chance.cc.crawler.prod.command.schedule.news.zhihu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.zhihu.ZHSearchRealtimeCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.job.domain.news.zhihu.ZHSearchSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;
import org.junit.Test;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-09 18:21:21
 * @email okprog@sina.com
 */
public class ZHSearchCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
//        publicCrawlerScheduleJob(ZHSearchRealtimeCrawlerScheduleJob.crawlerJob());
//        publicCrawlerScheduleJob(ZHSearchTraceAHourCrawlerScheduleJob.crawlerJob());
       // publicCrawlerScheduleJob(ZHSearchTraceAWeekCrawlerScheduleJob.crawlerJob());
        publicCrawlerScheduleJob(ZHSearchSimpleCrawlerSchedulerJob.crawlerJob());

    }

    public static void publicCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_8);
    }

    @Test
    public void delCrawler(){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(ZHSearchRealtimeCrawlerScheduleJob.crawlerJob().generateCrawlerTriggerKey(),device_name_8);
    }
}
